home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14522 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newsfeed.tip.net!dataphone!newsmaster
  2. From: skorpio@dataphone.se (Jarmo Paavilainen)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Colors in text-mode. And with Watcom ?
  5. Date: 15 Apr 1996 15:27:10 GMT
  6. Organization: Dataphone Communication Networks
  7. Message-ID: <4ktpse$q9@nic.dataphone.se>
  8. References: <4jrlrf$jab@nosy.bart.nl> <4k4pl1$pea@host1.einstein.com.ar> <Dpp4xz.LqM@pgh.nauticom.net><4jrlrf$jab@nosy.bart.nl> <4k4pl1$pea@host1.einstein.com.ar> <Dpp4xz.LqM@pgh.nauticom.net> <31707A6B.A34@trader.com>
  9. Reply-To: skorpio@dataphone.se
  10. NNTP-Posting-Host: nikson.dataphone.se
  11. X-Newsreader: NeoLogic News for OS/2 [version: 4.5 YO Beta]
  12.  
  13. In message <31707A6B.A34@trader.com> - mg <mg@trader.com>Sat, 13 Apr 1996
  14. 23:09:15 -0500 writes:
  15.  
  16. :>> > >Does somebody know how I can get colors in the text-mode of C/C++?
  17. I
  18.  
  19. get or set, that is the question ?
  20.  
  21. If you want to get you could use gettextinfo, or read directly from video
  22. memory.
  23.  
  24. :>> you dont need to do that!  OK, use textcolor(int) and
  25. textbackground(int)
  26. :>> and for output, use cprintf(char*)
  27. ..
  28. :>I agree. Think the MS version of these two is _settextcolor(int) and 
  29. :>_setbkcolor(int). With MS, think you also have to print to a buffer and
  30. ..
  31.  
  32. And does anyone know what command you could use with Watcom 10.5 ?
  33.  
  34. Take care,
  35. Skorpio
  36. _________________________________________________________________________
  37.  Jarmo Paavilainen, Skorpio                         skorpio@dataphone.se
  38.  Sweden                                 http://www.dataphone.se/~skorpio
  39.  
  40.